<template>
  <div class="goods">
    <pagesContent :tableConfig="tableConfig" pages-name="good">
      <template v-slot:headerHand>
        <el-button type="primary">添加商品</el-button>
      </template>
      <template v-slot:img="scope">
        <el-image
          style="width: 60px; height: 60px"
          :src="scope.row.imgUrl"
          :preview-src-list="[scope.row.imgUrl]"
          :initial-index="0"
          fit="cover"
          preview-teleported
          hide-on-click-modal
        />
      </template>
    </pagesContent>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import pagesContent from '@/components/pages-content/pages-content.vue'
import { tableConfig } from '@/views/main/product/goods/config/table-config'
export default defineComponent({
  name: 'goods-pages',
  components: {
    pagesContent
  },
  setup() {
    return { tableConfig }
  }
})
</script>

<style scoped></style>
